using Microsoft.Xna.Framework;

namespace ZombieHigh2.Controller
{
    public class ZombieAI : BaseAIController
    {
        public override void AI_PlayerLocation(Vector3 me, Vector3 position)
        {
            /*Vector3 direction = me - position;
            direction.Y = 0f;
            direction.Normalize();

            ControlData.LAnalog.X = -direction.X;
            ControlData.LAnalog.Y = -direction.Z;

            base.AI_PlayerLocation(me, position);*/

            Vector3 distance = me - position;
            distance.Y = 0;

            if (distance.Length() > 100f)
            {
                Brain.ActorOutOfRange();
            }
            else
            {
                Brain.ActorWithinRange();
            }

            base.AI_PlayerLocation(me, position);
        }
    }
}
